# include "parser.h"
# include "../../../util/lists/linked-list.h"

void mostra (Student *t) {
	fprintf(stdout,"Nome: %s\n",t->name);
	fprintf(stdout,"Numero: %d\n",t->number);
}

int main () {
	Student *tmp;
	//FILE *fp = fopen("sample.txt","r");
	ArrayList *l = readStudents(stdin);
	int i;
	printf("SIZE: %d\n",arrayGetLength(l));
	for (i=0;i<arrayGetLength(l);i++) {
		tmp = arrayGet(l,i);
		mostra(tmp);
	}
	//fclose(fp);
	return 0;
}
